﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class MatualFundTypeMap : ClassMap<MatualFundType>
    {
        public MatualFundTypeMap()
        {
            Table("MATUAL_FUND_TYPE");
            Id(x => x.MatualFundTypeId, "MATUAL_FUND_TYPE_ID").GeneratedBy.Identity();
            Map(x => x.MatualFundTypeNameEn, "MATUAL_FUND_TYPE_NAME_EN");
            Map(x => x.MatualFundTypeNameTh, "MATUAL_FUND_TYPE_NAME_TH");
            Map(x => x.MatualFundTypeChildNameEn, "MATUAL_FUND_TYPE_CHILD_NAME_EN");
            Map(x => x.MatualFundTypeChildNameTh, "MATUAL_FUND_TYPE_CHILD_NAME_TH");
        }
    }
}
